projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
707229c
)
GtkDragSource: Pass return value of drag-cancel into drag_end()
author
Alexander Larsson
<alexl@redhat.com>
Thu, 14 May 2020 08:44:07 +0000
(10:44 +0200)
committer
Alexander Larsson
<alexl@redhat.com>
Thu, 14 May 2020 08:44:07 +0000
(10:44 +0200)
This is needed to work as the docs say (don't play fallback cancel animation
if cancel returned TRUE to signal the drop already happened).
gtk/gtkdragsource.c
patch
|
blob
|
history
diff --git
a/gtk/gtkdragsource.c
b/gtk/gtkdragsource.c
index 1cb8674aa8509c14c6ef182cf8de26720c38668d..779fbefb814fdcf9157c80aafde9954797803be9 100644
(file)
--- a/
gtk/gtkdragsource.c
+++ b/
gtk/gtkdragsource.c
@@
-436,7
+436,7
@@
gtk_drag_source_cancel_cb (GdkDrag *drag,
gboolean success = FALSE;
g_signal_emit (source, signals[DRAG_CANCEL], 0, source->drag, reason, &success);
- drag_end (source,
FALSE
);
+ drag_end (source,
success
);
}
static void